package com.dj.mingkong.common.infrastructure.base.eo;


import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.data.mongodb.core.mapping.FieldType;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.time.LocalDateTime;

/**
 * @author zenglonghui
 * @date: 2022/5/17 9:21
 */
public abstract class BaseMgEo {
    @Id
    @MongoId(FieldType.OBJECT_ID)
    private String id;

    @Field(name = "createPerson")
    private Long createPerson;

    @Field(name = "createTime")
    private LocalDateTime createTime;

    @Field(name = "updatePerson")
    private Long updatePerson;

    @Field(name = "updateTime")
    private LocalDateTime updateTime;

    @Field(name = "deleted")
    private Integer deleted = 0;

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getCreatePerson() {
        return this.createPerson;
    }

    public void setCreatePerson(Long createPerson) {
        this.createPerson = createPerson;
    }

    public LocalDateTime getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getUpdatePerson() {
        return this.updatePerson;
    }

    public void setUpdatePerson(Long updatePerson) {
        this.updatePerson = updatePerson;
    }

    public LocalDateTime getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDeleted() {
        return this.deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}
